import {MyCoupon, RechargeInfo, BookList, wxAdmin} from './../api/mine'

const actions = {
  showFooter (context, a) {
    context.commit('showFooter', a)
  },
  isOrdering (context, a) {
    context.commit('isOrdering', a)
  },
  selectTime (context, a) {
    context.commit('selectTime', a)
  },
  //我的信息
  USER_INFO (context, a) {
    context.commit('USER_INFO', a)
  },
  //充值介绍
  RECHARGE_INFO (context) {
    RechargeInfo().then(res => {
      context.commit('RECHARGE_INFO', {
        RechargeInfo: res.data.data
      })
    })
  },
  //套餐列表
  MEAL_LIST (context, a) {
    context.commit('MEAL_LIST', a)
  },
  //选中的优惠券
  SELECT_COUPON (context, a) {
    context.commit('SELECT_COUPON', a)
  },
  //选择的座位
  CHECKSEATLIST (context, a) {
    context.commit('CHECKSEATLIST', a)
  },
  //删除所有座位图
  DEL_ALL_SEAT (context, a) {
    context.commit('DEL_ALL_SEAT', a)
  },
  //删除座位
  DEL_SEAT (context, a) {
    context.commit('DEL_SEAT', a)
  },
  //消息详情
  M_D (context, a) {
    context.commit('M_D', a)
  },
  MONEY_MES (context, a) {
    context.commit('MONEY_MES', a)
  }
}

export default actions
